| The Advanced Calendar Component > FAdvancedCalendar.setDataProvider(dp) |
FAdvancedCalendar.setDataProvider(dp)
Availability
Flash Player 6.
Usage
myCalendar.setDataProvider(dp);
Parameters
The DataProvider that will populate
the calendar.
dp
Returns
Nothing.
Description
Allows you to connect the Advanced Calendar Component to a DataProvider. The
items in the DataProvider should have dateObj and data properties. This allows
the calendar to know what dates to associate the data with. The data can be
any user defined object while the dateObj has to be an instance of the Date
object.
Example
The following example shows what connecting the Calendar to a DataProvider might
look like.
function Remoting_Result(dp){
myCalendar.setDataProvider(dp);
}
See also
FAdvancedCalendar.getCellData
FAdvancedCalendar.setCellData